/* EasyWay Game Engine
 * Copyright (C) 2007 Daniele Paggi.
 *  
 * Written by: 2007 Daniele Paggi<dshnt@hotmail.com>
 *   
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public License
 * as published by the Free Software Foundation; either version 2 of
 * the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Library General Public License for more details.
 * 
 * You should have received a copy of the GNU Library General Public
 * License along with this program; if not, write to the Free Software
 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */

package org.easyway.lists.linked;

import org.easyway.interfaces.base.IBaseObject;

/**
 * The Cell of the linkedList
 * 
 * @author Daniele Paggi
 * 
 */
public class Entry<E extends IBaseObject> {
	
	public Entry(Entry<E> next, Entry<E> prev, E value, BaseLinkedList list) {
		this.next = next;
		this.prev = prev;
		this.value = value;
		this.list = list;
	}
	/**
	 * the next Entry in the linked list
	 */
	public Entry<E> next;

	/**
	 * the previous Entry in the linked list
	 */
	public Entry<E> prev;

	/**
	 * the value of this entry
	 */
	public E value;

	/**
	 * the list in witch the Entry is used
	 */
	public BaseLinkedList list;
}
